package com.example.demo.myModel.enums;

import lombok.Getter;

@Getter
public enum SignUpStatusEnum {
    
    SUBMITTED(0, "已提交"),
    PENDING(1, "待审核"),
    APPROVED(2, "审核通过"),
    REJECTED(3, "审核未通过");

    private final Integer value;
    private final String text;

    SignUpStatusEnum(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

    public static SignUpStatusEnum getByValue(Integer value) {
        if (value == null) {
            return null;
        }
        for (SignUpStatusEnum status : values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        return null;
    }
} 